package com.hyt.it.ogt.ykcj.common.enums;

import lombok.Getter;

/**
 * 项目下载文件类型
 */
@Getter
public enum ExamResultDownLoadFileTypeEnum {

	OTHERUNARCHIVED("1", "其他成绩未归档"), 
	OTHERARCHIVED("2", "其他成绩已归档"),
	ENTERPRISEUNARCHIVED("3", "企业招聘成绩未归档"), 
	ENTERPRISEARCHIVED("4", "企业招聘成绩已归档"),
	
	ZS_BATCH_DOWNLOAD("11", "证书批量下载"),
	ZS_BATCH_DOWNLOAD_NO_SIGNATURE("12", "证书批量下载无电子签章"),
	;

	private final String type;
	private final String desc;

	private ExamResultDownLoadFileTypeEnum(String type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	/**
	 * 获取主观题类型
	 * 
	 * @param code
	 *            试卷类型标识
	 * @return 试卷类型枚举值
	 */
	public static ExamResultDownLoadFileTypeEnum getByCode(String type) {
		for (ExamResultDownLoadFileTypeEnum value : values()) {
			if (value.getType().equals(type)) {
				return value;
			}
		}
		return null;
	}
}
